#include <list>
#include <iostream>
#include "mathfunctions.h"
using namespace std;
#include "WDMBoard.h"

WDMPortObject::WDMPortObject() {
  this->length = 60;
  this->height = 45;

}

void WDMPortObject::draw(QPainter &painter) {  // NOLINT


  QRect classFrame(position.x() - length / 2,
                   position.y() - height / 2,
                   length, height);
  // box fill
  painter.setPen(Qt::black);
  painter.setBrush(Qt::white);
  painter.setBackground(Qt::white);
  painter.drawRect(classFrame);

#if 0
  // Methods section
  QRect methodsSection(position.x() - (length / 2) + 4,
                       position.y() - (height / 2) + classHeight + attributeHeight + 2,
                       length, height);
  painter.drawLine(position.x() - length / 2, position.y() - (height / 2) + classHeight + attributeHeight,
                   position.x() + length / 2, position.y() - (height / 2) + classHeight + attributeHeight);
  painter.drawText(methodsSection, m_methods);
#endif
  // Always call this ObjectNode's draw function because it
  // draws the selection boxes as needed.
  BaseNode::setUpConnectionPoints();
  ObjectNode::draw(painter);
}



